from __future__ import division
import argparse
import logging
from src.region_regression import Model
import time

def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('-x', '--x-file', default='data/pic_feature.txt')
    parser.add_argument('-y', '--y-file', default='data/pic_y_feature.txt')
    return parser.parse_args()


def main(args):
    model = Model(args.x_file, args.y_file)
    # model.do_svr(random_state=int(time.time()))
    model.do_svr_kfold(vis=False)

if __name__ == '__main__':
    args = parse_args()
    logging.basicConfig(level=logging.INFO)
    main(args)
